#include <QApplication>
#include "chat.h"
#include <cstdio>

int main(int c, char **v)
{
    if (c < 2)
    {
        printf("Please enter the ip address and the port as command line arguments.");
        return 1;
    }
    QApplication app(c, v);
    Chat chat(v[1], v[2]);
    chat.show();

    return app.exec();
}

